package day15;

public class tu extends Thread{
    int i=20;
    @Override
    public void run(){
       while(i<100) {
           i+=10;
            System.out.println("乌龟跑了"+i+"米");
            if(i==100){
                System.out.println("乌龟赢得比赛");
            }
            tu.yield();
        }
    }
}
